/******************************************************************************
 * Arquivo: ClienteTO.java                                                           *
 * Autor: Aurindo Jorge Ferreira                                              *
 * e-mail: aurindo@gmail.com                                                  *
 * Data de cria��o: 12/12/2007                                                   *
 *                                                                            *
 * Propriedade de FastFind Solu��es Tecnologicas                              *
 ******************************************************************************/

package br.com.srv.model;

import java.io.Serializable;

public class ClienteTO implements Serializable{

	private static final long serialVersionUID = 2727477108042888432L;
	
	private Integer id;
	private String login;
	private String password;
	private String password2;
	private String passwordOld;
	private String descricao;
	private Integer tipoCliente;
	private Boolean status;
	private Integer userId;		

	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Boolean getStatus() {
		return status;
	}
	public void setStatus(Boolean status) {
		this.status = status;
	}
	public Integer getTipoCliente() {
		return tipoCliente;
	}
	public void setTipoCliente(Integer tipoCliente) {
		this.tipoCliente = tipoCliente;
	}
	public String getPassword2() {
		return password2;
	}
	public void setPassword2(String password2) {
		this.password2 = password2;
	}
	public String getDescricao() {
		return descricao;
	}
	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getPasswordOld() {
		return passwordOld;
	}
	public void setPasswordOld(String passwordOld) {
		this.passwordOld = passwordOld;
	}
	/**
	 * Returns <code>true</code> if this <code>ClienteTO</code> is the same as the o argument.
	 *
	 * @return <code>true</code> if this <code>ClienteTO</code> is the same as the o argument.
	 */
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (o == null) {
			return false;
		}
		if (o.getClass() != getClass()) {
			return false;
		}
		ClienteTO castedObj = (ClienteTO) o;
		return ((this.id == null ? castedObj.id == null : this.id
			.equals(castedObj.id))
			&& (this.login == null ? castedObj.login == null : this.login
				.equals(castedObj.login))
			&& (this.password == null
				? castedObj.password == null
				: this.password.equals(castedObj.password))
			&& (this.password2 == null
				? castedObj.password2 == null
				: this.password2.equals(castedObj.password2)) && (this.descricao == null
			? castedObj.descricao == null
			: this.descricao.equals(castedObj.descricao)));
	}
	/**
	 * Override hashCode.
	 *
	 * @return the Objects hashcode.
	 */
	public int hashCode() {
		int hashCode = 1;
		hashCode = 31
			* hashCode
			+ (int) (+serialVersionUID ^ (serialVersionUID >>> 32));
		hashCode = 31 * hashCode + (id == null ? 0 : id.hashCode());
		hashCode = 31 * hashCode + (login == null ? 0 : login.hashCode());
		hashCode = 31 * hashCode + (password == null ? 0 : password.hashCode());
		hashCode = 31
			* hashCode
			+ (password2 == null ? 0 : password2.hashCode());
		hashCode = 31
			* hashCode
			+ (descricao == null ? 0 : descricao.hashCode());
		return hashCode;
	}
	/**
	 * @generated by CodeSugar http://sourceforge.net/projects/codesugar */
	
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("[ClienteTO:");
		buffer.append(" id: ");
		buffer.append(id);
		buffer.append(" login: ");
		buffer.append(login);
		buffer.append(" password: ");
		buffer.append(password);
		buffer.append(" password2: ");
		buffer.append(password2);
		buffer.append(" descricao: ");
		buffer.append(descricao);
		buffer.append("]");
		return buffer.toString();
	}
	
	
}
